/*import {request} from '@/plugins/axios'
import qs from 'qs'
import ApiPath from '@/utils/api_paths'
export function login(data) {
    return request({
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        url: ApiPath.login.login,
        method: 'post',
        data,
        transformRequest: [function (data) {
            return qs.stringify(data);
        }]
    })
}*/

export function login(data) {
    return new Promise(resolve => {
        resolve({
            code: 200,
            msg: 'success',
            data: {
                username: data.username,
                nickName: '天天向上',
                roleNames: '管理员',
                token: '123456789abcdef'
            }
        })
    })
}
